#include "TuxSpy.h"
#include "TuxSpyFrame.h"
#include "FusionSpyIcon.h"
#include <wx/splash.h>

IMPLEMENT_APP( MyApp );

bool MyApp::OnInit()
{
	
	TuxSpyFrame* frame = new TuxSpyFrame();
	frame->SetIcon( wxICON( amain ) );
	SetTopWindow(frame); 

	wxInitAllImageHandlers();
	wxSplashScreen* splash = new wxSplashScreen(wxMEMORY_BITMAP(logo),
		wxSPLASH_CENTRE_ON_SCREEN|wxSPLASH_TIMEOUT,
		2000, NULL, -1, wxDefaultPosition, wxDefaultSize,
		wxSIMPLE_BORDER|wxSTAY_ON_TOP);
	wxYield();
	wxSleep(3);
	
	frame->Show();
	return true;
}
